-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add get_targeted_long #882
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpaiton
force-pushed
the
dpaiton/targeted-long
branch
from
March 22, 2024 08:06
0cb7ac7
to
8384995
Compare
This was
linked to
issues
Mar 26, 2024
Closed
dpaiton
force-pushed
the
dpaiton/targeted-long
branch
12 times, most recently
from
April 2, 2024 00:27
cf82bbe
to
dec0819
Compare
dpaiton
requested review from
jalextowle,
jrhea,
mcclurejt,
slundqui and
ryangoree
as code owners
April 2, 2024 00:28
dpaiton
force-pushed
the
dpaiton/targeted-long
branch
2 times, most recently
from
April 2, 2024 00:34
8a6aa0e
to
740c3ab
Compare
A detailed derivation of the solution can be found in section 2 of the attached document. |
dpaiton
force-pushed
the
dpaiton/targeted-long
branch
from
April 2, 2024 00:41
740c3ab
to
b31f8a4
Compare
jalextowle
reviewed
Apr 2, 2024
jalextowle
reviewed
Apr 2, 2024
jalextowle
reviewed
Apr 2, 2024
dpaiton
force-pushed
the
dpaiton/targeted-long
branch
from
April 5, 2024 15:40
4af4e6a
to
874400d
Compare
dpaiton
force-pushed
the
dpaiton/targeted-long
branch
from
April 5, 2024 20:05
874400d
to
23c9f83
Compare
jalextowle
reviewed
Apr 5, 2024
dpaiton
force-pushed
the
dpaiton/targeted-long
branch
2 times, most recently
from
April 5, 2024 20:19
4603c43
to
56a26c9
Compare
jalextowle
approved these changes
Apr 5, 2024
dpaiton
force-pushed
the
dpaiton/targeted-long
branch
from
April 5, 2024 20:32
56a26c9
to
c6ca404
Compare
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Apr 5, 2024
dpaiton
force-pushed
the
dpaiton/targeted-long
branch
from
April 5, 2024 21:33
c6ca404
to
e9c4477
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
addresses #775
The solution first attempts to directly compute targeted reserve levels:$r_t$ , the pool share reserves, $z_t$ , must be:
For some target rate,
and the pool bond reserves,$y_t$ , must be:
where$c$ is the vault share price, $\mu$ is the initial vault share price, $t$ is the annualized position duration, and $T$ is the time stretch constant. The corresponding deltas are then:
If that is not successful, then it performs newtons method to minimize
for some realized fixed rate,$r(x) = (1 - p(x)) / (p(x) t)$ after a long was opened with $x$ base, where $p(x)$ is the spot price after the long was opened.